package com.zeekr.orm.utils;


import java.util.Arrays;

/**
 * @author 吴文杰
 * @version 1.0
 * @since 2024/10/23 1:19
 */
public class Test {
  public static void main(String[] args) {
    // UseTest asd = new TestBuilder()
    //         .address("asdasd")
    //         .age(20)
    //         .build();
    // System.out.println(asd.getAge());


    int[] a =  {1,2,3} ;
    int result = testFunParma(a, ints -> Arrays.stream(ints).max().getAsInt());
    System.out.println(result);
  }
  interface Operation<T>{

    T run(int[] ints);

  }
  static int testFunParma(int[] ints, Operation<Integer> operation) {
    Integer i = operation.run(ints);
    return i;
  }


}
